﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace LoginServer
{
    public class ManagerPlayer
    {
        public List<int> PlayerInTable { get; set; }
        public List<int> Players{ get; set; }
        public ManagerPlayer(GetDB AccessDB, int RoomID)
        {
            Players = AccessDB.GetAllUser(RoomID);
            PlayerInTable = AccessDB.GetAllUserInTable(RoomID);
            if (Players == null)
                Players = new List<int>();
            if (PlayerInTable == null)
                PlayerInTable = new List<int>();
        }
        public void RemovePlayer(int UserID)
        {
            Players.Remove(UserID);
            PlayerInTable.Remove(UserID);
        }
    }
}
